package com.wangyp.tower.model.tower;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.wangyp.tower.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * @Author: Wangyp
 * @Date: 2021/4/25 15:46
 * @Description: *
 */
@Data
@ApiModel(description = "Tower")
@Document("Tower")
public class TowerInfo{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "铁塔编号")
    private String towerId;

    @ApiModelProperty(value = "产权方")
    private String ownerType;

    @ApiModelProperty(value = "产权方管理者")
    private String ownerName;

    @ApiModelProperty(value = "省份")
    private String provinceCode;

    @ApiModelProperty(value = "地市")
    private String regionCode;

    @ApiModelProperty(value = "区县")
    private String countyCode;

    @ApiModelProperty(value = "详细地址")
    private String detailAddress;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "生效时间")
    private Date activeTime;

    @ApiModelProperty(value = "失效时间")
    private Date inactiveTime;

    @ApiModelProperty(value = "逻辑删除(1:已删除，0:未删除)")
    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "其他参数")
    @TableField(exist = false)
    private Map<String,Object> param = new HashMap<>();

}
